package com.spzx.product.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "商品单位")
public class ProductUnit extends BaseEntity {
    @Schema(description = "商品单位名称")
    @NotEmpty(message = "商品单位名称不能为空")
    @Size(min = 1 , max = 5 , message = "商品单位名称长度范围1~5")
    private String name;
}
